import { proxybase } from '@/utils/constants'
import request from '@/utils/request'

export function getClientTypes(params) {
    return request({
        url: proxybase + 'clientTypes',
        method: 'get',
        params
    })
}

export function getClients(params) {
    return request({
        url: proxybase + 'clients',
        method: 'get',
        params
    })
}

export function getClientDevices(params) {
    return request({
        url: proxybase + 'clients/' + params['id'] + '/devices',
        method: 'get',
        params
    })
}

export function getClientApps(params) {
    return request({
        url: proxybase + 'clients/' + params['id'] + '/apps',
        method: 'get',
        params
    })
}